package com.lucker.ds.model;

import java.math.BigDecimal;

/**
 * cai_piao_miss_code_list
 * @author 
 */
public class CaiPiaoMissCodeList extends BaseValueObject {
    private Long id;

    /**
     * '彩票ID
     */
    private Long caiId;

    /**
     * '彩票大类ID
     */
    private Long caiTypeId;

    /**
     * 遗漏玩法ID
     */
    private Long missTypeId;

    /**
     * 遗漏玩法名称
     */
    private String missTypeName;

    /**
     * 号码1
     */
    private String firstNum;

    /**
     * 号码2
     */
    private String secondNum;

    /**
     * 号码3
     */
    private String thirdNum;

    /**
     * 当前遗漏
     */
    private Integer currentMissValue;

    /**
     * 欲出几率
     */
    private BigDecimal appearProbability;

    /**
     * 回补几率
     */
    private BigDecimal replenishProbability;

    /**
     * 近10次遗漏
     */
    private Integer teenMissValue;

    /**
     * 最大遗漏
     */
    private Integer maxMissValue;

    /**
     * 最后更新期号
     */
    private String lastIssueNo;

    private String customQuerySqlText = null;

    private String orderStr = null;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getCaiId() {
        return caiId;
    }

    public void setCaiId(Long caiId) {
        this.caiId = caiId;
    }

    public Long getCaiTypeId() {
        return caiTypeId;
    }

    public void setCaiTypeId(Long caiTypeId) {
        this.caiTypeId = caiTypeId;
    }

    public Long getMissTypeId() {
        return missTypeId;
    }

    public void setMissTypeId(Long missTypeId) {
        this.missTypeId = missTypeId;
    }

    public String getMissTypeName() {
        return missTypeName;
    }

    public void setMissTypeName(String missTypeName) {
        this.missTypeName = missTypeName;
    }

    public String getFirstNum() {
        return firstNum;
    }

    public void setFirstNum(String firstNum) {
        this.firstNum = firstNum;
    }

    public String getSecondNum() {
        return secondNum;
    }

    public void setSecondNum(String secondNum) {
        this.secondNum = secondNum;
    }

    public String getThirdNum() {
        return thirdNum;
    }

    public void setThirdNum(String thirdNum) {
        this.thirdNum = thirdNum;
    }

    public Integer getCurrentMissValue() {
        return currentMissValue;
    }

    public void setCurrentMissValue(Integer currentMissValue) {
        this.currentMissValue = currentMissValue;
    }

    public BigDecimal getAppearProbability() {
        return appearProbability;
    }

    public void setAppearProbability(BigDecimal appearProbability) {
        this.appearProbability = appearProbability;
    }

    public BigDecimal getReplenishProbability() {
        return replenishProbability;
    }

    public void setReplenishProbability(BigDecimal replenishProbability) {
        this.replenishProbability = replenishProbability;
    }

    public Integer getTeenMissValue() {
        return teenMissValue;
    }

    public void setTeenMissValue(Integer teenMissValue) {
        this.teenMissValue = teenMissValue;
    }

    public Integer getMaxMissValue() {
        return maxMissValue;
    }

    public void setMaxMissValue(Integer maxMissValue) {
        this.maxMissValue = maxMissValue;
    }

    public String getLastIssueNo() {
        return lastIssueNo;
    }

    public void setLastIssueNo(String lastIssueNo) {
        this.lastIssueNo = lastIssueNo;
    }

    public void setCustomQuerySqlText(String customQuerySqlText) {
        this.customQuerySqlText = customQuerySqlText;
    }

    public String getCustomQuerySqlText() {
        return customQuerySqlText;
    }

    public void orderById(boolean isAsc) {
        if(isAsc){
            if(this.orderStr == null){
                this.orderStr = "order by id asc";
            }else{
                this.orderStr = this.orderStr + ",id asc";
            }
        }else{
            if(this.orderStr == null){
                this.orderStr = "order by id desc";
            }else{
                this.orderStr = this.orderStr + ",id desc";
            }
        }
    }

    public void orderByCaiId(boolean isAsc) {
        if(isAsc){
            if(this.orderStr == null){
                this.orderStr = "order by cai_id asc";
            }else{
                this.orderStr = this.orderStr + ",cai_id asc";
            }
        }else{
            if(this.orderStr == null){
                this.orderStr = "order by cai_id desc";
            }else{
                this.orderStr = this.orderStr + ",cai_id desc";
            }
        }
    }

    public void orderByCaiTypeId(boolean isAsc) {
        if(isAsc){
            if(this.orderStr == null){
                this.orderStr = "order by cai_type_id asc";
            }else{
                this.orderStr = this.orderStr + ",cai_type_id asc";
            }
        }else{
            if(this.orderStr == null){
                this.orderStr = "order by cai_type_id desc";
            }else{
                this.orderStr = this.orderStr + ",cai_type_id desc";
            }
        }
    }

    public void orderByMissTypeId(boolean isAsc) {
        if(isAsc){
            if(this.orderStr == null){
                this.orderStr = "order by miss_type_id asc";
            }else{
                this.orderStr = this.orderStr + ",miss_type_id asc";
            }
        }else{
            if(this.orderStr == null){
                this.orderStr = "order by miss_type_id desc";
            }else{
                this.orderStr = this.orderStr + ",miss_type_id desc";
            }
        }
    }

    public void orderByMissTypeName(boolean isAsc) {
        if(isAsc){
            if(this.orderStr == null){
                this.orderStr = "order by miss_type_name asc";
            }else{
                this.orderStr = this.orderStr + ",miss_type_name asc";
            }
        }else{
            if(this.orderStr == null){
                this.orderStr = "order by miss_type_name desc";
            }else{
                this.orderStr = this.orderStr + ",miss_type_name desc";
            }
        }
    }

    public void orderByFirstNum(boolean isAsc) {
        if(isAsc){
            if(this.orderStr == null){
                this.orderStr = "order by first_num asc";
            }else{
                this.orderStr = this.orderStr + ",first_num asc";
            }
        }else{
            if(this.orderStr == null){
                this.orderStr = "order by first_num desc";
            }else{
                this.orderStr = this.orderStr + ",first_num desc";
            }
        }
    }

    public void orderBySecondNum(boolean isAsc) {
        if(isAsc){
            if(this.orderStr == null){
                this.orderStr = "order by second_num asc";
            }else{
                this.orderStr = this.orderStr + ",second_num asc";
            }
        }else{
            if(this.orderStr == null){
                this.orderStr = "order by second_num desc";
            }else{
                this.orderStr = this.orderStr + ",second_num desc";
            }
        }
    }

    public void orderByThirdNum(boolean isAsc) {
        if(isAsc){
            if(this.orderStr == null){
                this.orderStr = "order by third_num asc";
            }else{
                this.orderStr = this.orderStr + ",third_num asc";
            }
        }else{
            if(this.orderStr == null){
                this.orderStr = "order by third_num desc";
            }else{
                this.orderStr = this.orderStr + ",third_num desc";
            }
        }
    }

    public void orderByCurrentMissValue(boolean isAsc) {
        if(isAsc){
            if(this.orderStr == null){
                this.orderStr = "order by current_miss_value asc";
            }else{
                this.orderStr = this.orderStr + ",current_miss_value asc";
            }
        }else{
            if(this.orderStr == null){
                this.orderStr = "order by current_miss_value desc";
            }else{
                this.orderStr = this.orderStr + ",current_miss_value desc";
            }
        }
    }

    public void orderByAppearProbability(boolean isAsc) {
        if(isAsc){
            if(this.orderStr == null){
                this.orderStr = "order by appear_probability asc";
            }else{
                this.orderStr = this.orderStr + ",appear_probability asc";
            }
        }else{
            if(this.orderStr == null){
                this.orderStr = "order by appear_probability desc";
            }else{
                this.orderStr = this.orderStr + ",appear_probability desc";
            }
        }
    }

    public void orderByReplenishProbability(boolean isAsc) {
        if(isAsc){
            if(this.orderStr == null){
                this.orderStr = "order by replenish_probability asc";
            }else{
                this.orderStr = this.orderStr + ",replenish_probability asc";
            }
        }else{
            if(this.orderStr == null){
                this.orderStr = "order by replenish_probability desc";
            }else{
                this.orderStr = this.orderStr + ",replenish_probability desc";
            }
        }
    }

    public void orderByTeenMissValue(boolean isAsc) {
        if(isAsc){
            if(this.orderStr == null){
                this.orderStr = "order by teen_miss_value asc";
            }else{
                this.orderStr = this.orderStr + ",teen_miss_value asc";
            }
        }else{
            if(this.orderStr == null){
                this.orderStr = "order by teen_miss_value desc";
            }else{
                this.orderStr = this.orderStr + ",teen_miss_value desc";
            }
        }
    }

    public void orderByMaxMissValue(boolean isAsc) {
        if(isAsc){
            if(this.orderStr == null){
                this.orderStr = "order by max_miss_value asc";
            }else{
                this.orderStr = this.orderStr + ",max_miss_value asc";
            }
        }else{
            if(this.orderStr == null){
                this.orderStr = "order by max_miss_value desc";
            }else{
                this.orderStr = this.orderStr + ",max_miss_value desc";
            }
        }
    }

    public void orderByLastIssueNo(boolean isAsc) {
        if(isAsc){
            if(this.orderStr == null){
                this.orderStr = "order by last_issue_no asc";
            }else{
                this.orderStr = this.orderStr + ",last_issue_no asc";
            }
        }else{
            if(this.orderStr == null){
                this.orderStr = "order by last_issue_no desc";
            }else{
                this.orderStr = this.orderStr + ",last_issue_no desc";
            }
        }
    }
}